﻿%input#deadline{type="hidden",name="deadline",value=(create) ? DateTime.Now.ToString("dd.MM.yyyy") : entity.Deadline.ToString("dd.MM.yyyy")}
#calendarholder.orderinfo.monthmode.hidden.popup
%table{width="100%",cellspacing="3"}
  %tr
    %td{width="140"}
      %label.required.padded3{for="deadlinelink"}Срок выполнения:
    %td
      -if (!readOnly)          
        %a#deadlinelink.basictext.noul{tabindex="16", href="#",onclick="return toggleCalendar();"}
          =(create || entity.Deadline.Date == DateTime.Now.Date) ? "Сегодня" :  entity.Deadline.ToShortDateString()
      -else
        %span 
          =(create || entity.Deadline.Date == DateTime.Now.Date) ? "Сегодня" :  entity.Deadline.ToShortDateString()     
      %input#deadlinehours.indent10.px30.required.number{tabindex="17",name="deadlinehours",value=(create) ? DateTime.Now.AddMinutes(orderperiod).Hour.ToString() : entity.Deadline.Hour.ToString(), maxlength="2"}
      ч.
      %input#deadlineminutes.px30.required.number{tabindex="18",name="deadlineminutes",value=(create) ? DateTime.Now.AddMinutes(orderperiod).Minute.ToString() : entity.Deadline.Minute.ToString(),maxlength="2"}
      мин. 